package router

import (
	"github.com/kataras/iris"
	"github.com/kataras/iris/context"
	"github.com/kataras/iris/mvc"
)

func Router(app *iris.Application){
	mvc.New(app.Party("/", func(context context.Context) {
		context.Writef("helloword1")
	}))
	app.Get("/haha", func(context context.Context) {
		form:=context.Path()
		a:=context.URLParamDefault("a","")
		context.Writef(form)
		context.Writef(a)
	})
}